package handle

import (
	"AcsGo/internal/domain"
)

func HandleQuery(str string) (string, error) {
	queryRequest, err := domain.HandleQueryRequest(str)
	if err != nil {
		return "", err
	}
	lg.Debugf("queryRequest: %v", queryRequest)
	var screenMessage = ""
	queryResponse := domain.InitQueryResponse(screenMessage)
	sb, _ := queryResponse.StringFormat()
	lg.Debugf("success: %v", sb)
	return sb, nil
}
